package seq

import java.util

import scala.collection.JavaConversions

/**
  * @Author:CHQ
  * @Date:2021 /5/14 16:06
  * @Description
  */
object SortWith {
  def main(args: Array[String]): Unit = {



    val floatList= new util.ArrayList[java.lang.Float]()
     floatList.add(1.5.toFloat)
     floatList.add(1.6.toFloat)
     floatList.add(1.7.toFloat)
    println(floatList.toString)

    val floatListScala = JavaConversions.asScalaBuffer(floatList)
    println(floatListScala.toString())

    val list =  floatListScala.toArray.map(r => r.toDouble)
    for (i <- list){
      println(i)
    }

  }
}
